from django.contrib.auth.models import User
from django.db import models
from utils.modelsMixin import ModelSetMixin

# Create your models here.
class Classes(ModelSetMixin):
    name = models.CharField(max_length=30, verbose_name='班级名')
    slogan = models.TextField(null=True, blank=True, verbose_name='班级口号')

    member = models.ManyToManyField(User)

    class Meta:
        db_table = 'classes'
        verbose_name = '班级'
        verbose_name_plural = verbose_name
